﻿namespace ShapesExercise
{
    using System;

    public class Circle : Shape
    {
        public Circle(double diameter)
        {
            this.Diameter = diameter;
        }

        internal double Diameter
        {
            get
            {
                return base.height;
            }

            private set
            {
                base.height = value;
                base.width = value;
            }
        }

        internal override double CalculateSurface()
        {
            return Math.PI * (this.Diameter / 2) * (this.Diameter / 2);
        }
    }
}